package tx.bj12320.model.enums;
import java.util.LinkedHashMap;

import cn.org.rapid_framework.lang.enums.EnumBase;
import cn.org.rapid_framework.lang.enums.EnumBaseUtils;

public enum HegeBuhegeEnum implements EnumBase<String>{
	Hege(new String("合格"),"合格"),
	Buhege(new String("不合格"),"不合格")
	;

	private final String code;
	private final String desc;
	HegeBuhegeEnum(String code,String desc) {
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}

	public static HegeBuhegeEnum getByCode(String code) {
		return EnumBaseUtils.getByCode(code, values());
	}

	public static HegeBuhegeEnum getRequiredByCode(String code) throws IllegalArgumentException {
		return EnumBaseUtils.getRequiredByCode(code, values());
	}

	@SuppressWarnings("unchecked")
	public static LinkedHashMap<String, String> toMap() {
	    return EnumBaseUtils.toMap(values());
	}
}
